package cn.powerone.scm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.powerone.scm.mapper.ScmInventoryWarehouseMapper;
import cn.powerone.scm.domain.ScmInventoryWarehouse;
import cn.powerone.scm.service.IScmInventoryWarehouseService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author PowerOne
 * @date 2025-07-20
 */
@Service
public class ScmInventoryWarehouseServiceImpl implements IScmInventoryWarehouseService 
{
    @Autowired
    private ScmInventoryWarehouseMapper scmInventoryWarehouseMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ScmInventoryWarehouse selectScmInventoryWarehouseById(Long id)
    {
        return scmInventoryWarehouseMapper.selectScmInventoryWarehouseById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param scmInventoryWarehouse 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ScmInventoryWarehouse> selectScmInventoryWarehouseList(ScmInventoryWarehouse scmInventoryWarehouse)
    {
        return scmInventoryWarehouseMapper.selectScmInventoryWarehouseList(scmInventoryWarehouse);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param scmInventoryWarehouse 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertScmInventoryWarehouse(ScmInventoryWarehouse scmInventoryWarehouse)
    {
        return scmInventoryWarehouseMapper.insertScmInventoryWarehouse(scmInventoryWarehouse);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param scmInventoryWarehouse 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateScmInventoryWarehouse(ScmInventoryWarehouse scmInventoryWarehouse)
    {
        return scmInventoryWarehouseMapper.updateScmInventoryWarehouse(scmInventoryWarehouse);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteScmInventoryWarehouseByIds(Long[] ids)
    {
        return scmInventoryWarehouseMapper.deleteScmInventoryWarehouseByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteScmInventoryWarehouseById(Long id)
    {
        return scmInventoryWarehouseMapper.deleteScmInventoryWarehouseById(id);
    }
}
